import React, { Component } from "react";
import { connect } from 'react-redux';
import {fromJS} from 'immutable';
import { ImgWrap } from './style';
class Detail extends Component {
    render() {
        const { imgList } = this.props;
        return (
            <ImgWrap>
                {
                    imgList.map(i => {
                        return (<img src={i} alt="11" key={i}/>)
                    })
                }
            </ImgWrap>
        )
    }
}
const mapStateToProps = (state, ownProps) => {
    state= fromJS(state);
    return {
        imgList: state.get("start").get("imgList").toJS()
    }
}
export default connect(mapStateToProps, null)(Detail)